# eric7.Plugins.PluginWizardQFileDialog

This plugin shows the QFileDialog wizard.

### Global Attributes

__header__
error

### Classes

FileDialogWizard | Class implementing the QFileDialog wizard plugin.

### Functions

None

## FileDialogWizard

Class implementing the QFileDialog wizard plugin.

### Derived from

QObject

### Class Attributes

None

### Class Methods

None

### Methods

FileDialogWizard | Constructor
__callForm | Private method to display a dialog and get the code.
__handle | Private method to handle the wizards action.
__initActions | Private method to initialize the actions.
__initMenu | Private method to add the actions to the right menu.
activate | Public method to activate this plugin.
deactivate | Public method to deactivate this plugin.

### Static Methods

None

#### FileDialogWizard (Constructor)

FileDialogWizard(ui)

Constructor

ui (UserInterface)
  reference to the user interface object

#### FileDialogWizard.__callForm

__callForm(editor, variant)

Private method to display a dialog and get the code.

editor (Editor)
  reference to the current editor
variant (int)
  variant of code to be generated (-1 = EricFileDialog, 0 = unknown, 6 = PyQt6)

Return:
  the generated code

Return Type:
  str

#### FileDialogWizard.__handle

__handle(variant)

Private method to handle the wizards action.

variant (str)
  dialog variant to be generated (EricFileDialog or QFileDialog)

Raises ValueError:
  raised to indicate an illegal file dialog variant

#### FileDialogWizard.__initActions

__initActions()

Private method to initialize the actions.

#### FileDialogWizard.__initMenu

__initMenu()

Private method to add the actions to the right menu.

#### FileDialogWizard.activate

activate()

Public method to activate this plugin.

Return:
  tuple of None and activation status

Return Type:
  bool

#### FileDialogWizard.deactivate

deactivate()

Public method to deactivate this plugin.

Up